﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200012F RID: 303
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BGCNNENILKB : IMessage<BGCNNENILKB>, IMessage, IEquatable<BGCNNENILKB>, IDeepCloneable<BGCNNENILKB>, IBufferMessage
	{
		// Token: 0x17000420 RID: 1056
		// (get) Token: 0x06000DE8 RID: 3560 RVA: 0x0002990C File Offset: 0x00027B0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BGCNNENILKB> Parser
		{
			get
			{
				return BGCNNENILKB._parser;
			}
		}

		// Token: 0x17000421 RID: 1057
		// (get) Token: 0x06000DE9 RID: 3561 RVA: 0x00029913 File Offset: 0x00027B13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BGCNNENILKBReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000422 RID: 1058
		// (get) Token: 0x06000DEA RID: 3562 RVA: 0x00029925 File Offset: 0x00027B25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BGCNNENILKB.Descriptor;
			}
		}

		// Token: 0x06000DEB RID: 3563 RVA: 0x0002992C File Offset: 0x00027B2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BGCNNENILKB()
		{
		}

		// Token: 0x06000DEC RID: 3564 RVA: 0x00029934 File Offset: 0x00027B34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BGCNNENILKB(BGCNNENILKB other) : this()
		{
			this.gachaRandom_ = other.gachaRandom_;
			this.fEDCPJJMFPI_ = other.fEDCPJJMFPI_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000DED RID: 3565 RVA: 0x00029965 File Offset: 0x00027B65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BGCNNENILKB Clone()
		{
			return new BGCNNENILKB(this);
		}

		// Token: 0x17000423 RID: 1059
		// (get) Token: 0x06000DEE RID: 3566 RVA: 0x0002996D File Offset: 0x00027B6D
		// (set) Token: 0x06000DEF RID: 3567 RVA: 0x00029975 File Offset: 0x00027B75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaRandom
		{
			get
			{
				return this.gachaRandom_;
			}
			set
			{
				this.gachaRandom_ = value;
			}
		}

		// Token: 0x17000424 RID: 1060
		// (get) Token: 0x06000DF0 RID: 3568 RVA: 0x0002997E File Offset: 0x00027B7E
		// (set) Token: 0x06000DF1 RID: 3569 RVA: 0x00029986 File Offset: 0x00027B86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool FEDCPJJMFPI
		{
			get
			{
				return this.fEDCPJJMFPI_;
			}
			set
			{
				this.fEDCPJJMFPI_ = value;
			}
		}

		// Token: 0x06000DF2 RID: 3570 RVA: 0x0002998F File Offset: 0x00027B8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BGCNNENILKB);
		}

		// Token: 0x06000DF3 RID: 3571 RVA: 0x0002999D File Offset: 0x00027B9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BGCNNENILKB other)
		{
			return other != null && (other == this || (this.GachaRandom == other.GachaRandom && this.FEDCPJJMFPI == other.FEDCPJJMFPI && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000DF4 RID: 3572 RVA: 0x000299DC File Offset: 0x00027BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GachaRandom != 0U)
			{
				num ^= this.GachaRandom.GetHashCode();
			}
			if (this.FEDCPJJMFPI)
			{
				num ^= this.FEDCPJJMFPI.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000DF5 RID: 3573 RVA: 0x00029A34 File Offset: 0x00027C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000DF6 RID: 3574 RVA: 0x00029A3C File Offset: 0x00027C3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000DF7 RID: 3575 RVA: 0x00029A48 File Offset: 0x00027C48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FEDCPJJMFPI)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.FEDCPJJMFPI);
			}
			if (this.GachaRandom != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.GachaRandom);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000DF8 RID: 3576 RVA: 0x00029AA4 File Offset: 0x00027CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GachaRandom != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaRandom);
			}
			if (this.FEDCPJJMFPI)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000DF9 RID: 3577 RVA: 0x00029AF0 File Offset: 0x00027CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BGCNNENILKB other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GachaRandom != 0U)
			{
				this.GachaRandom = other.GachaRandom;
			}
			if (other.FEDCPJJMFPI)
			{
				this.FEDCPJJMFPI = other.FEDCPJJMFPI;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000DFA RID: 3578 RVA: 0x00029B40 File Offset: 0x00027D40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000DFB RID: 3579 RVA: 0x00029B4C File Offset: 0x00027D4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.GachaRandom = input.ReadUInt32();
					}
				}
				else
				{
					this.FEDCPJJMFPI = input.ReadBool();
				}
			}
		}

		// Token: 0x040005E6 RID: 1510
		private static readonly MessageParser<BGCNNENILKB> _parser = new MessageParser<BGCNNENILKB>(() => new BGCNNENILKB());

		// Token: 0x040005E7 RID: 1511
		private UnknownFieldSet _unknownFields;

		// Token: 0x040005E8 RID: 1512
		public const int GachaRandomFieldNumber = 5;

		// Token: 0x040005E9 RID: 1513
		private uint gachaRandom_;

		// Token: 0x040005EA RID: 1514
		public const int FEDCPJJMFPIFieldNumber = 2;

		// Token: 0x040005EB RID: 1515
		private bool fEDCPJJMFPI_;
	}
}
